import 'package:boss/textStyle/text_style.dart';
import 'package:boss/ui/page/commodity/categories/page/plusCommodityMode/page/plusCommodityByFormField/page/skuSetting/provider/sku_provider.dart';
import 'package:boss/ui/widget/label_button.dart';
import 'package:hi_common/hi_common.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

class SkuPlusBtn extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      alignment: Alignment.centerRight,
      margin: EdgeInsets.only(
        top: 26.w,
      ),
      child: LabelButton(
        title: '+添加规格',
        textStyle: TextStyleConstant().blue_28,
        onTap: () {
          var skuProvider = Provider.of<SkuProvider>(context, listen: false,);
          skuProvider.addSku();
        },
      ),
    );
  }
}
